<?php
/**
 * Niushop商城系统 - 团队十年电商经验汇集巨献!
 * =========================================================
 * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
 * ----------------------------------------------
 * 官方网址: https://www.niushop.com
 * =========================================================
 */

namespace addon\fenxiao\model;

use app\model\BaseModel;
use app\model\system\Stat;

/**
 * 优惠券
 */
class Fenxiao extends BaseModel
{
    public function getParentFenxiaoName($fenxiao_id, $level){
        
        if(empty($fenxiao_id)){
            return '';
        }else{
            $member_info = model('member')->getInfo([ [ 'member_id', '=', $fenxiao_id ] ], 'username,is_edit_username');
            return $member_info['username'];
        }
        
    }
}